<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>AI小助手</title>
    <style>
        /* 标题栏样式 */
        .title-bar {
            -webkit-app-region: drag;
            height: 22px;
            background-color: rgb(255, 255, 255);
            display: flex;
            align-items: center;
            padding: 4px;
        }

        /* 控制按钮容器样式 */
        .control-buttons {
            display: flex;
            align-items: center;
            margin-left: auto;
            /* 将控制按钮容器推到左侧 */
        }

        /* 控制按钮样式 */
        .control-button {
            -webkit-app-region: no-drag;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-left: 8px;
            background-color: #bcbcbc;
            cursor: pointer;
        }

        .pin-button {
            -webkit-app-region: no-drag;
            width: 12px;
            height: 12px;
            border-radius: 50%;
            margin-right: 8px;
            background-color: rgba(50, 108, 255, 0.5);
            cursor: pointer;
        }

        /* 激活状态下的控制按钮样式 */
        .control-button:hover {
            background-color: #a0a0a0;
        }

        .maximize-button {
            background-color: rgb(39, 200, 64);
        }

        .maximize-button:hover {
            background-color: rgba(39, 200, 64, 0.5);
        }

        .minimize-button {
            background-color: rgb(254, 188, 46);
        }

        .minimize-button:hover {
            background-color: rgba(254, 188, 46, 0.5);
        }

        /* 关闭按钮样式 */
        .close-button {
            background-color: rgb(255, 95, 87);
        }

        .close-button:hover {
            background-color: rgba(255, 95, 87, 0.5);
        }

        /* 标题样式 */
        .title {
            flex-grow: 1;
            /* 标题占满剩余空间 */
            text-align: center;
            /* 标题居中 */
            margin-right: 50px;
            /* 使标题居中 */
            font-size: 12px;
        }

        .pin-top {
            background-color: rgb(50, 108, 255);
        }

        /* ---------------------------- */
        body,
        html {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
        }

        #app-content {
            width: 100%;
            height: calc(100% - 34px);
        }

        .dark .title-bar {
            background-color: rgb(33, 45, 34);
            color: rgb(255, 255, 255);
        }
    </style>
</head>

<body>
    <div class="title-bar">
        <!-- 控制按钮容器 -->
        <div class="control-buttons">
            <!-- 关闭按钮 -->
            <div class="control-button close-button" id="close"></div>
            <!-- 最小化按钮 -->
            <div class="control-button minimize-button" id="minimize"></div>
            <!-- 最大化按钮 -->
            <div class="control-button maximize-button" id="maximize"></div>
        </div>
        <!-- 标题 -->
        <div id="title" class="title">AI小助手</div>
        <div class="pin-button pin-top" id="toggleAlwaysOnTop"></div>
    </div>

    <script src="renderer.js"></script>

    <div id="app-content">
        <!-- Your application content goes here -->
        <iframe src="" style="width: 100%; height: 100%;" frameborder="0" allow="*" />
    </div>
</body>

</html>